<?php

namespace app\common\model;

use think\Model;
use traits\model\SoftDelete;


class CouponLog extends Model
{

    use SoftDelete;




    // 表名
    protected $name = 'coupon_log';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = 'collectiontime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    public function goods(){
        return $this->belongsTo('Goods', 'goods_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
